package com.love.cloud.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.love.cloud.common.mybatis.entity.SimpleBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author hongdongqu
 */
@Data
@Entity
@Table(name = "sys_attention_app")
@TableName("sys_attention_app")
@EqualsAndHashCode(callSuper = false)
@org.hibernate.annotations.Table(appliesTo = "sys_attention_app",comment="关注应用")
public class SysAttentionApp extends SimpleBaseEntity {
    /**
     * 用户id
     */
    @Column(columnDefinition = "bigint(20) COMMENT '用户id'")
    private Long userId;
    /**
     * 菜单id
     */
    @Column(columnDefinition = "bigint(20) COMMENT '菜单id'")
    private Integer menuId;

    /**
     * 收藏/取消收藏
     */
    @Column(columnDefinition = "INT  COMMENT '收藏标识(0.收藏,1.取消收藏)' default 0")
    private Integer enable;
}
